package service;

import entity.Students;

import javax.naming.NamingException;
import java.sql.SQLException;
import java.util.List;

public interface StudentsService {
    List<Students> cx(String xh, String name, int page, int pageSize) throws SQLException, NamingException, ClassNotFoundException;

    int getTotalCount(String xh, String name) throws SQLException, NamingException, ClassNotFoundException;

    int modify(String stu,String name,String gender,int id) throws SQLException, NamingException, ClassNotFoundException;

    int append(String stu,String name,String gender) throws SQLException, NamingException, ClassNotFoundException;

    int delete(int id) throws SQLException, NamingException, ClassNotFoundException;

    List<Students> cxcw() throws SQLException, ClassNotFoundException;

}
